<html>
<head><meta charset="utf-8"><title>Feedback on Clippy configs art · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html">Feedback on Clippy configs art</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216114331"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216114331" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pavel Ignatovich <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216114331">(Nov 09 2020 at 17:10)</a>:</h4>
<p>Hello folks!</p>
<p>I wrote an article with an attempt to some kind of statistical analysis of usage of Clippy by Rust developers. This is my first text on this topic so far so I would greatly appreciate any feedback. </p>
<p><a href="https://medium.com/monocodus/a-survey-into-static-analyzers-configurations-clippy-for-rust-part-1-5de50fd9326">https://medium.com/monocodus/a-survey-into-static-analyzers-configurations-clippy-for-rust-part-1-5de50fd9326</a></p>
<p>Does it represent the case well? Do you find it interesting? What should I do another way?</p>
<p>Thanks <span aria-label="smiley" class="emoji emoji-1f603" role="img" title="smiley">:smiley:</span></p>



<a name="216114792"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216114792" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oliver <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216114792">(Nov 09 2020 at 17:14)</a>:</h4>
<p>Clippy is “A collection of links to catch common mistakes and improve your Rust code.” &gt; </p>
<blockquote>
<p>Clippy is “A collection of lints to catch common mistakes and improve your Rust code.”</p>
</blockquote>



<a name="216118369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216118369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Eh2406 <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216118369">(Nov 09 2020 at 17:39)</a>:</h4>
<p>This research is relay important and thank you for getting started on it.<br>
2 thoughts, as someone that has contributed to a bunch of rust code in the past 5 years. As I have seen it, most projects do not use clippy, and meny that do configure it inline, like <a href="https://github.com/rust-lang/cargo/blob/master/src/cargo/lib.rs#L5-L31">https://github.com/rust-lang/cargo/blob/master/src/cargo/lib.rs#L5-L31</a><br>
So I don't know that not having a <code>.clippy</code> means that the defaults are good.</p>



<a name="216129641"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216129641" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Pavel Ignatovich <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216129641">(Nov 09 2020 at 19:06)</a>:</h4>
<p><span class="user-mention silent" data-user-id="281739">oliver</span> <a href="#narrow/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art/near/216114792">said</a>:</p>
<blockquote>
<p>Clippy is “A collection of links to catch common mistakes and improve your Rust code.” &gt; </p>
<blockquote>
<p>Clippy is “A collection of lints to catch common mistakes and improve your Rust code.”</p>
</blockquote>
</blockquote>
<p>Oh, Thank you!</p>
<p>Silly mistake, fixed =)</p>



<a name="216130082"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216130082" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216130082">(Nov 09 2020 at 19:10)</a>:</h4>
<p>hmm, this article mentions complexity lints a lot, but complexity lints are not really why I use clippy (I find them kind of annoying)</p>



<a name="216130101"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216130101" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216130101">(Nov 09 2020 at 19:10)</a>:</h4>
<p>clippy is good for 'you rewrote this standard library function' and things like that</p>



<a name="216130145"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216130145" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216130145">(Nov 09 2020 at 19:10)</a>:</h4>
<p>or 'you wrote valid code that will crash at runtime': <a href="https://github.com/rust-lang/rust/pull/75671">https://github.com/rust-lang/rust/pull/75671</a></p>



<a name="216130954"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Feedback%20on%20Clippy%20configs%20art/near/216130954" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Feedback.20on.20Clippy.20configs.20art.html#216130954">(Nov 09 2020 at 19:17)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/pull/78825#discussion_r519057758">https://github.com/rust-lang/rust/pull/78825#discussion_r519057758</a> also has some discussion on the purpose of clippy</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>